package chapter5;
import java.util.Scanner;
/****************************************************************
 * Author：icynlau
 * Description: 处理字符串
 * Date:2021/4/4
 * ***************************************************************
 */
public class exc5_48 {
	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		

		
		System.out.print("Enter a string: ");
		String s=input.nextLine();
		for(int i=0;i<s.length();i++) {
			if(i%2==0) {
				System.out.print(s.charAt(i));
			}
			
		}
		
	}

}
